package com.own.demo.lwf.common.determine;

import org.apache.commons.lang3.StringUtils;

import java.util.Objects;

public class NullDemo {
    public static void main(String[] args) {
        String s1 = null;
        String s2 = " ";
        String s3 = "";
        String s4 = new String();
        System.out.println("isNull");
        System.out.println(Objects.isNull(s1) + "," + Objects.isNull(s2) + "," + Objects.isNull(s3) + "," + Objects.isNull(s4));

        System.out.println("isEmpty");
        System.out.println(StringUtils.isEmpty(s1) + "," + StringUtils.isEmpty(s2) + "," + StringUtils.isEmpty(s3) + "," + StringUtils.isEmpty(s4));

        System.out.println("isBank");
        System.out.println(StringUtils.isBlank(s1) + "," + StringUtils.isBlank(s2) + "," + StringUtils.isBlank(s3) + "," + StringUtils.isBlank(s4));
    }
}
